# Author : baobao
# date : Week07

stu_id = [95,96,97,98,99,80,97]


# 删除 97的值
# 方法1： remove
#stu_id.remove(97)
#print(stu_id)
# 重复的没删 只删前的97

# 删干净
#while True:
    #if 97 in stu_id:
        #stu_id.remove(97)
    #else:
        #break
#print(stu_id)

# 方法2： pop()
# print(stu_id.index(97))
for index,item in enumerate(stu_id):
    print(index,item)
    if item == 97:
        print(index)
        stu_id.pop(index)
print(stu_id)